package com.zhizuobiao.coura.utils;

/**
 * Created by coura on 2016/12/29.
 */

public class StringUtil {

    /**
     * 提取出城市或者县
     * @param city
     * @return
     */
    public static String extractLocation(final String city){
        if (city.contains("市")||city.contains("县")){
            return city.substring(0,city.length()-1);
        }
        return city;
    }
}
